	<div class="bm mdcp">
	<!--{if $op == 'edit' || $op == 'ban'}-->
		{if $op == 'edit'}<h1 class="wx">{lang mod_member_edit}</h1>{else}<h1 class="wx">{lang mod_member_ban}</h1>{/if}
		<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_G[gp_action]&op=$op">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<div class="exfm">
				<table cellspacing="0" cellpadding="0">
					<caption>
						<!--{if !empty($error)}-->
							<!--{if $error == 1}-->
								{lang mod_message_member_search}
							<!--{elseif $error == 2}-->
								{lang mod_message_member_nonexistence}
							<!--{elseif $error == 3}-->
								{lang mod_message_member_nopermission}
								<!--{if $_G['adminid'] == 1}-->
									, <a href="admin.php?action=members&amp;operation=search&amp;username={$usernameenc}&amp;submit=yes&amp;frames=yes" target="_blank">{lang mod_message_goto_admincp}</a>
								<!--{/if}-->
							<!--{/if}-->
						<!--{/if}-->
					</caption>
					<tr>
						<th width="15%">{lang username}:</th>
						<td width="85%"><input type="text" name="username" value="" size="20" class="px" /></td>
					</tr>
					<tr>
						<th>UID:</th>
						<td><input type="text" name="uid" value="" size="20" class="px" /> [{lang optional}]</td>
					</tr>
					<tr>
						<td></td>
						<td><button type="submit" class="pn" name="submit" id="searchsubmit" value="true"><strong>{lang modcp_logs_search}</strong></button></td>
					</tr>
				</table>
			</div>
		</form>
	<!--{/if}-->

	<!--{if $op == 'edit' && $member && !$error}-->
		<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_G[gp_action]&op=$op" class="schresult">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<input type="hidden" name="username" value="$_G['gp_username']">
			<input type="hidden" name="uid" value="$_G['gp_uid']">
			<table cellspacing="0" cellpadding="0" class="tfm">
				<tr>
					<th></th>
					<td>
						<table width="100%">
							<tr>
								<td width="10%" valign="top" rowspan="2">{echo discuz_uc_avatar($member[uid], 'small');}</td>
								<td>
									<strong><a href="home.php?mod=space&uid=$member[uid]" target="_blank">$member[username]</a></strong>
									<p>UID: $member[uid]</p>
								</td>
							</tr>
						</table>
						<input name="clearavatar" type="checkbox" value="1" class="pc" /> {lang avatar_del}
					</td>
				</tr>
				<tr>
					<th valign="top">{lang bio}</th>
					<td><textarea name="bionew" rows="4" cols="80" class="txtarea">$member['bio']</textarea></td>
				</tr>
				<tr>
					<th valign="top">{lang signature}</th>
					<td><textarea name="signaturenew" rows="4" cols="80" class="txtarea">$member[signature]</textarea></td>
				</tr>
				<tr>
					<th></th>
					<td><button type="submit" class="pn" name="editsubmit" id="submit" value="true"><strong>{lang submit}</strong></button></td>
				</tr>
			</table>
		</form>
	<!--{/if}-->

	<!--{if $op == 'ban' && $member && !$error}-->
		<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_G[gp_action]&op=$op" class="schresult">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<input type="hidden" name="username" value="$_G['gp_username']">
			<input type="hidden" name="uid" value="$_G['gp_uid']">
			<table cellspacing="0" cellpadding="0" class="tfm">
				<tr>
					<th></th>
					<td>
						<table width="100%">
							<tr>
								<td width="10%" valign="top" rowspan="2">{echo discuz_uc_avatar($member[uid], 'small');}</td>
								<td>
									<strong><a href="home.php?mod=space&uid=$member[uid]" target="_blank">$member[username]</a></strong> (UID: $member[uid])
									<p>{if $member[groupid] == 4}{lang modcp_members_status_banpost}{elseif $member[groupid] == 5}{lang modcp_members_status_banvisit}{else}{lang modcp_members_status_normal}{/if} {if $member['banexpiry']}( {lang valid_before} $member['banexpiry'] ){/if}</p>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>{lang changeto}:</th>
					<td>
						{if $member[groupid] == 4 || $member[groupid] == 5}
							<input type="radio" name="bannew" id="bannew_0" value="0" checked="checked" class="pr" /> <label for="bannew_0">{lang modcp_members_status_normal}</label> 
						{/if}
						{if $member[groupid] != 4}<input type="radio" name="bannew" id="bannew_4" value="4" {if $member[groupid] != 4 && $member[groupid] != 5}checked="checked"{/if} class="pr" /> <label for="bannew_4">{lang modcp_members_status_banpost}</label> {/if}
						{if $member[groupid] != 5}<input type="radio" name="bannew" id="bannew_5" value="5" class="pr" /> <label for="bannew_5">{lang modcp_members_status_banvisit}</label>{/if}
					</td>
				</tr>
				<tr>
					<th>{lang expiry}:</th>
					<td>
						<p class="hasd">
							<script type="text/javascript" src="{$_G[setting][jspath]}forum_calendar.js?{VERHASH}"></script>
							<input type="text" id="banexpirynew" name="banexpirynew" autocomplete="off" value="" class="px pxn" tabindex="1" style="margin-right: 0; width: 100px;" />
							<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'banexpirynew', 1, 1)">^</a>
							&nbsp;&nbsp;{lang modcp_members_ban_days_comment}
						</p>
					</td>
				</tr>
				<tr>
					<th valign="top">{lang reason}:</th>
					<td><textarea name="reason" rows="4" cols="80" class="pt">$member[signature]</textarea></td>
				</tr>
				<tr>
					<th></th>
					<td><button type="submit" class="pn" name="bansubmit" id="submit" value="true"><strong>{lang submit}</strong></button></td>
				</tr>
			</table>
		</form>
	<!--{/if}-->

	<!--{if $op == 'ipban'}-->
			<h1 class="wx">{lang mod_option_member_ipban}</h1>
				<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_G[gp_action]&op=$op">
					<input type="hidden" name="formhash" value="{FORMHASH}">
						<div class="exfm">
							<table cellspacing="0" cellpadding="0">
								<tr>
									<th width="15%">{lang add_new}</th>
									<td width="85%">
										<input type="text" name="ip1new" value="$iptoban[0]" size="2" maxlength="3" class="px"/> .
										<input type="text" name="ip2new" value="$iptoban[1]" size="2" maxlength="3" class="px" /> .
										<input type="text" name="ip3new" value="$iptoban[2]" size="2" maxlength="3" class="px" /> .
										<input type="text" name="ip4new" value="$iptoban[3]" size="2" maxlength="3" class="px" />
										&nbsp;&nbsp;{lang modcp_ip_message}
									</td>
								</tr>
								<tr>	
									<th width="15%">{lang expiry}:</th>
									<td width="85%" class="hasd">
										<script type="text/javascript" src="{$_G[setting][jspath]}forum_calendar.js?{VERHASH}"></script>
										<input type="text" id="validitynew" name="validitynew" autocomplete="off" value="" class="px" tabindex="1" style="width: 100px;" />
										<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'validitynew', 0, 1)">^</a>
									</td>
								</tr>
								<tr>
									<td></td>
									<td><button type="submit" class="pn" name="ipbansubmit" id="submit" value="true"><strong>{lang submit}</strong></button></td>
								</tr>
							</table>
						</div>
					
					<!--{if $adderror}-->
						<div class="emp">
						<!--{if $adderror == 1}-->
							{lang modcp_members_ip_error_1}
						<!--{elseif $adderror == 2}-->
							{lang modcp_members_ip_error_2}
						<!--{elseif $adderror == 3}-->
							{lang modcp_members_ip_error_3}
						<!--{elseif $updatecheck || $deletecheck || $addcheck}-->
							{lang modcp_members_ip_succed}
						<!--{else}-->
							{lang modcp_members_ip_error_4}
						<!--{/if}-->
						</div>
					<!--{/if}-->
					<h2 class="ptm">{lang modcp_ban_ip}</h2>
					<table cellspacing="0" cellpadding="0" class="dt">
						<thead>
							<tr>
								<th class="c">{lang delete}</th>
								<th>{lang online_ip}</th>
								<th>{lang ip_location}</th>
								<th>{lang modcp_members_ip_addadmin}</th>
								<th>{lang starttime}</th>
								<th>{lang endtime}</th>
							</tr>
						</thead>
						<!--{loop $iplist $ip}-->
						<tr>
							<td><input type="checkbox" name="delete[]" value="$ip[id]" class="pc" $ip[disabled]></td>
							<td>$ip[theip]</td>
							<td>$ip[location]</td>
							<td>$ip[admin]</td>
							<td>$ip[dateline]</td>
							<td class="hasd">
								<input type="text" id="expirationnew[{$ip[id]}]" name="expirationnew[{$ip[id]}]" autocomplete="off" value="$ip[expiration]" class="px" tabindex="1"/>
								<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationnew[{$ip[id]}]', 0, 1)">^</a>
							</td>
						</tr>
						<!--{/loop}-->
						<tr class="bbn">
							<td><label for="chkall"><input class="pc" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form)" /> {lang checkall}</label></td>
							<td colspan="5"><button type="submit" class="pn" name="ipbansubmit" id="submit" value="true"><strong>{lang submit}</strong></button></td>
						</tr>
					</table>
				</form>
	
	<!--{/if}-->
	</div>
